home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>223</cardCount>
- <cardID>2878</cardID>
- <listID>7108</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>-------------------------------------------------------------------
- -- Think C Programming Guide v.1.0.
- -- February 27, 1991
- -- Please send $20 shareware fee to:
- -- Ralph Gonzalez, PO Box 54, Newark, DE 19711, USA
- -------------------------------------------------------------------
- -- This stack was created with Bookbinder 1.0.1, which aids in
- -- the creation of HyperCard documents. Bookbinder is $10 shareware
- -- by Ralph Gonzalez, PO Box 54, Newark, DE 19711. Sept 20, 1990.
- -------------------------------------------------------------------
- -- Changes to the scripts involved: (1) removing references to an
- -- "index" card in arrowkey handler ("page" script"); (2) removing
- -- the need to update page numbers when "notes" pages are added (on
- -- newCard and on doMenu handlers of the stack script); (3) adding
- -- UpdateNotesPg handler (notes card script); (4) changing the
- -- onMouseUp handler in the Add Notes Pg button. Also, for HC 2.0
- -- compatibility I had to lengthen the bookmark page no. fields by
- -- about 4 pixels.
- -------------------------------------------------------------------
-
- on openStack
- show menuBar
- global stackJustPrinted
- put false into stackJustPrinted
- global gettingHelp
- put false into gettingHelp
- global xrefdepth
- put 0 into xrefdepth
- global showButton
- put false into showButton
- global cardJustPasted
- put false into cardJustPasted
- global cardJustDeleted
- put false into cardJustDeleted
- global deletedCard
- put card field "deletedCard" of card "contents" into deletedCard
- global bookmark1
- global bookmark2
- put card field "bookmark1" of card "contents" into bookmark1
- put card field "bookmark2" of card "contents" into bookmark2
- pass openStack
- end openStack
-
- on help
- put id of this card into card field "return card" of card "help"
- visual iris open
- go card "help"
- end help
-
- on newCard
- if the name of this card is not the name of card "notes" then
- show background button "Update Page Nos" of card "contents"
- end if
- pass newCard
- end newCard
-
- on doMenu choice
- global showButton
- global cardJustDeleted
- global deletedCard
- global cardJustPasted
- global stackJustPrinted
- if choice is "Print Stack..." then
- push card
- go card "contents"
- show field "footnote1"
- show field "footnote2"
- put true into stackJustPrinted
- pass doMenu
- end if
- if choice is "Paste Card" and¬
- the name of this card is not the name of card "notes" then
- put true into showButton
- -- can't show button immediately or the pasted card will have
- -- a different background
- put true into cardJustPasted
- end if
- if choice is "Undo" and¬
- the name of this card is not the name of card "notes" then
- put true into cardJustPasted
- -- in case you use "Undo" to paste a card
- end if
- if (choice is "Cut Card" or choice is "Delete Card") then
- show background button "Update Page Nos" of card "contents"
- -- show button before cut in case paste follows, to prevent
- -- change in background before paste
- set lockScreen to true
- push card
- go card "contents"
- get the id of this background
- pop card
- set lockScreen to false
- if it is the id of this background then
- -- i.e. deleting a true "page" card
- if deletedCard is not "" then
- answer "Please update page numbers first" with "OK"
- else
- put the id of this card into deletedCard
- put true into cardJustDeleted
- pass doMenu
- end if
- else
- put true into cardJustDeleted
- pass doMenu
- end if
- else
- pass doMenu
- end if
- end doMenu
-
- on idle
- global showButton
- global cardJustPasted
- if cardJustPasted then
- put false into cardJustPasted
- -- if pasted card has "page" background, see idle handler for "page"
- end if
- if showButton then
- put false into showButton
- show background button "Update Page Nos" of card "contents"
- end if
- pass idle
- end idle
-
- on closeStack
- global deletedCard
- put deletedCard into card